/**
 * Created by yoyoyk on 2017/5/27.
 */
/**
 * Created by Dalyn on 2017/3/16.
 */
import Relay from "react-relay";

export default class orderTaxRebateSendInvoice extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { orderTaxRebateSendInvoice }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId: this.props.orderId,
                sendStatus:this.props.sendStatus,
                sendUser:this.props.sendUser,
                sendUserName:this.props.sendUserName,
                invoiceNum:this.props.invoiceNum,
                expressName:this.props.expressName,
                expressSheet:this.props.expressSheet,
                invoiceFileJson:this.props.invoiceFileJson,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on orderTaxRebateSendInvoicePayload {
         orderTaxRebateSendInvoice {
                  authorityId
                  totalResult
                  token
                  value
                  userId
                  errorCode
           }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on orderTaxRebateSendInvoicePayload {
                    orderTaxRebateSendInvoice {
                        authorityId
                        totalResult
                        token
                        value
                        userId
                        errorCode
                     }
                }
            `]
        }];
    }
}
